<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<script type="text/javascript">
			var arr = [2, 3, 4, 5, 6];
			var len = arr.length;
			// console.log(len);
			/* console.log(arr[0]);
			console.log(arr[1]);
			console.log(arr[2]);
			console.log(arr[3]);
			console.log(arr[4]); */
			arr[5] = 999;
			for (var i = 0; i < arr.length; i++) {
				console.log(arr[i]);
			}
		</script>
	</body>
</html>
